package com.example.demo.common;

import lombok.Data;

public class Test10 {

    public static void main(String[] args) {
        Test test = new Test();
        test.setName("zs");
        test.setAge(16);
        func(test);
        System.out.println(test.getName() + "|" + test.getAge());
    }

    private static void func(Test test) {
        test.setName("ls");
        test.setAge(18);
    }

    @Data
    private static class Test {
        private String name;
        private Integer age;
    }
}


